package authority

type SubjectObj interface {
	GetID() string
	IsSuper() bool
}

type CasbinSubject struct {
	ID          string `json:"id"`
	IsSuperuser bool   `json:"isSuperuser"`
}

func (c *CasbinSubject) GetID() string {
	return c.ID
}

func (c *CasbinSubject) IsSuper() bool {
	return c.IsSuperuser
}
